package com.cf.base.http.exception;

import com.cf.base.http.bean.ErrorResponse;

/**
 * @author yangji
 */
public class CFServerException extends CFBaseException {

    private ErrorResponse response;

    public CFServerException(Throwable cause, int code, String message) {
        super(cause, code, message);
    }

    public CFServerException(Throwable cause, int code, String message, ErrorResponse response) {
        super(cause, code, message);
        this.response = response;
    }

    public ErrorResponse getResponse() {
        return response;
    }
}
